package com.zf.platform;

import com.zf.platform.support.util.Aes;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class PlatformApplication implements CommandLineRunner {

    @Value("${project.aes}")
    String aesKey;

    @Override
    public void run(String... args) throws Exception {
        Aes.KEY = aesKey;
    }

    public static void main(String[] args) {
        SpringApplication.run(PlatformApplication.class, args);
    }
}

